package cn.tedu.icop.user.dao.mapper;

import cn.tedu.icop.user.pojo.po.UserPO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper extends BaseMapper<UserPO> {
    @Select("select vehicle_id from charging_user_vehicle_bind where user_id = #{id} and state=1")
    Integer selectVehicleById(Integer id);
}
